<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<style type="text/css">
		.box{
			width: 400px;
			height: 400px;
			background: red url() 0 0 no-repeat;
		}

		.box1{
			width: 400px;
			height: 400px;
			background: #A349A4 url() 0 0 no-repeat;
		}

		.son{
			width: 200px;
			height: 200px;
			background: blue url() 0 0 no-repeat;
		}

	</style>
	<script type="text/javascript">
	window.onload = function(){
		// son = document.getElementsByClassName('son');
		// son[0].parentNode.parentNode.childNodes[3].nextSibling.nextSibling.style.backgroundColor='#000';
		schu = document.getElementsByClassName('schu');

		for (var i = 0; i < schu.length; i++) {
			run(i);
		}

		function run (x){
			schu[x].onclick = function(){
				schu[x].parentNode.parentNode.style.display='none';
			}


		}
	}

	</script>
</head>
<body>
	<!-- <span>sdfsdf</span>
	<div class="box">
		<div class="son">
			son
		</div>
	</div>
	<div class="box1"></div> -->
	<table border="1" style='text-align:center'>
		<tr>
			<td>姓名</td>
			<td>性别</td>
			<td>年龄</td>
			<td>操作</td>
		</tr>
		<tr>
			<td>安安</td>
			<td>男</td>
			<td>15</td>
			<td><input type="button" value="删除" class="schu"></td>
		</tr>
		<tr>
			<td>多多</td>
			<td></td>
			<td>15</td>
			<td><input type="button" value="删除" class='schu'></td>
		</tr>
		<tr>
			<td>梅梅</td>
			<td></td>
			<td>15</td>
			<td><input type="button" value="删除" class='schu'></td>
		</tr>
		<tr>
			<td>卡卡</td>
			<td></td>
			<td>15</td>
			<td><input type="button" value="删除" class='schu'></td>
		</tr>
		<tr>
			<td>蛋蛋</td>
			<td></td>
			<td>15</td>
			<td><input type="button" value="删除" class='schu'></td>
		</tr>
	</table>


</body>
</html>